<template>
	<view class="main">
		<view class="top">
			<view class="title">
				<view class="icon">
					<image src="../../static/school.png" mode="aspectFill"></image>
				</view>
				<view class="title-text">学院信息</view>
			</view>
			<view class="info">
				我们是一家致力于为台球爱好者和专业选手提供高质量培训和教育的机构。在我们的学院里，您将有机会接受专业教练团队的指导，从而提升您的台球技术水平，实现个人的台球梦想。
			</view>
			<view class="school">
				<view class="title">学院信息</view>
				<view class="shcool-image">
					<image class="picture" v-for="item in 3" :key="item" src="../../static/test.png" mode="aspectFill">
					</image>
				</view>
			</view>
		</view>
		<view class="middle">
			<view class="item">
				<view class="icon" @click="handleSkipStudentskip">
					<image src="../../static/user.png" mode="aspectFill"></image>
					<view class="text">学员管理</view>
				</view>
				<view class="icon" @click="handleSkipEoach">
					<image src="../../static/assistant.png" mode="aspectFill"></image>
					<view class="text">教练管理</view>
				</view>
			</view>
		</view>
		<view class="bottom">
			<image src="../../static/test.png" mode="aspectFill"></image>
		</view>
	</view>
</template>

<script lang="ts" setup>
	// 跳转学员管理
	const handleSkipStudentskip = () => {
		uni.navigateTo({
			url: '/pages/home/school/studentManagement'
		})
	}

	// 跳转教练管理
	const handleSkipEoach = () => {
		uni.navigateTo({
			url: '/pages/home/school/coachManagement'
		})
	}
</script>

<style lang="scss" scoped>
	.main {
		padding: 50rpx 36rpx;

		.bottom {
			width: 680rpx;
			height: 222rpx;

			image {
				border-radius: 10rpx;
				width: 100%;
				height: 100%;
			}
		}

		.top,
		.middle {
			padding: 34rpx 36rpx;
			box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
		}

		.top {
			.title {
				display: flex;
				align-items: center;

				.icon {
					padding-right: 10rpx;

					image {
						width: 30rpx;
						height: 30rpx;
					}
				}

				.title-text {
					opacity: 1;
					/** 文本1 */
					font-size: 14px;
					font-weight: 400;
					letter-spacing: 0px;
					line-height: 20.27px;
					color: rgba(0, 0, 0, 1);
				}
			}

			.info {
				opacity: 1;
				/** 文本1 */
				font-size: 12px;
				font-weight: 400;
				letter-spacing: 0px;
				line-height: 16.46px;
				color: rgba(102, 102, 102, 1);
				padding: 15rpx 0;
			}

			.school {
				.title {
					opacity: 1;
					/** 文本1 */
					font-size: 12px;
					font-weight: 400;
					letter-spacing: 0px;
					line-height: 17.38px;
					color: rgba(153, 153, 153, 1);
					padding-bottom: 20rpx;
				}

				.shcool-image {
					display: flex;
					align-items: center;
					flex-wrap: wrap;
					justify-content: space-between;

					.picture {
						width: 190rpx;
						height: 200rpx;
						border-radius: 5rpx;
					}
				}
			}
		}

		.middle {
			margin: 38rpx 0;
			display: flex;
			align-items: center;


			.item {
				display: flex;
				align-items: center;

				.icon:first-child {
					padding-right: 76rpx;
				}

				.icon {
					display: flex;
					flex-direction: column;
					align-items: center;

					image {
						width: 50rpx;
						height: 50rpx;
						padding-bottom: 24rpx;
					}

					.text {
						opacity: 1;
						/** 文本1 */
						font-size: 12px;
						font-weight: 400;
						letter-spacing: 0px;
						line-height: 16.46px;
						color: rgba(102, 102, 102, 1);
					}
				}
			}
		}
	}
</style>